package com.allwees.bs.c.module.app.dto;

import com.allwees.bs.c.module.product.vo.DispalyVO;
import com.allwees.bs.core.model.ops.AdsModel;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author Daniel
 * @Version 1.0.0
 * @Description
 * @CreateTime 2020/10/19 10:38
 */
@Getter
@Setter
public class AdsVO implements DispalyVO {
    private int displayAs = DISPLAY_AS_2;
    private String forwardUrl;
    private String imgUrl;
    private String param;
    private Integer sort;
    private Integer uuid;
    public AdsVO(){}

    public AdsVO(AdsModel model){
        this.forwardUrl = model.getForwardUrl();
        this.imgUrl = model.getImgUrl();
        this.param = model.getParam();
        this.sort = model.getSort();
        this.uuid = model.getId();
    }
}
